<div class="wrapper wrapper-content fadeInRight" ng-controller="userCtr">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>用户列表</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-10 pull-left">
                            <form class="form-inline">
                                <input class="form-control" ng-model="data.search.keyword" placeholder="昵称">
                                <button class="btn btn-primary" ng-click="getList(1)">搜索</button>
                                <button class="btn btn-success" access="UserExport" ng-click="export()">导出</button>
                            </form>
                        </div>
                    </div>
                    <table class="table table-bordered table-hover text-center">
                        <thead>
                        <tr>
                            <td>序号</td>
                            <td>昵称</td>
                            <td>头像</td>
                            <td>OPENID</td>
                            <td>注册时间</td>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="item in data.list">
                            <td>{{getItemIndex($index , data.search.page , data.search.pageSize)}}</td>
                            <td>{{item.nickname}}</td>
                            <td><img ng-src="{{item.avatar}}" height="50px"></td>

                            <td>{{item.openid}}</td>
                            <td>{{item.create_time}}</td>
                            <td><span class="btn btn-xs btn-warning" access="UserSet" ng-click="userSet(item)">设为经销商</span></td>
                        </tr>
                        <tr no-data="data.list"></tr>
                        </tbody>
                    </table>
                    <div admin-page="data.pages" curr-page="data.search.page" datas-count="data.count"
                         callback="getList"></div>
                </div>
            </div>
        </div>
    </div>


</div>